/**
 * Project: ameba.dal
 * 
 * File Created at 2016年1月4日
 * $Id$
 * 
 * Copyright 2015 dface.cn Croporation Limited.
 * All rights reserved.
 *
 * This software is the confidential and proprietary information of
 * dface Company. ("Confidential Information").  You shall not
 * disclose such Confidential Information and shall use it only in
 * accordance with the terms of the license agreement you entered into
 * with www.dface.cn
 */
package cn.dface.ameba.dal.entity;

/**
 * EnumApiUsage
 * @author LVZY
 *
 */
public enum EnumApiUsage {
    WEB(0), MOBILE(1);
    
    private int value;
    
    private EnumApiUsage(int value) {
        this.value = value;
    }
    
    public int getValue() {
        return value;
    }

    public static EnumApiUsage valueOf(int value) {
        for (EnumApiUsage type : EnumApiUsage.values()) {
            if (type.value == value) {
                return type;
            }
        }
        throw new IllegalArgumentException(
                "No enum const class " + EnumApiUsage.class.getName() + "." + value);
    }

}
